import timestamp from 'time-stamp'

/**
 * 获取时间字符串
 */
export function dateAndTime(date: string) {
  const f = 'YYYY/MM/DD HH-mm:ss'
  return date ? timestamp(f, new Date(date)) : ''
}
